package com.xingu.xg.exception;

import lombok.Data;

/**
 * @descriptions: TODO
 * @author: 涵哥
 * @date: 2024/3/12 23:32
 */
@Data
public class XinGuException extends RuntimeException{
    /**
     * 错误码
     */
    private int code;
    public XinGuException( String message) {
        super(message);
        this.code = 200;
    }

    public XinGuException(int code, String message) {
        super(message);
        this.code = code;
    }
}
